/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package aa.bb.cc;

/**
 * <p>Project: javase - My
 * <p>Powered by webrx On 2021-11-30 14:50:29
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class My extends Parent {
    public String name = "王五";

    //pf方法覆盖（重写）
    public int pf(int i) {
        System.out.println("self.pf()");
        return i * i;
    }

    public void show() {
        System.out.println(super.name);
        System.out.println(this.name);
        System.out.println(name);
    }


    //pf() 方法是重载方法
    public double pf(int a, int b, int c) {
        return 1.2;
    }

    public int pf(String n) {
        return Integer.parseInt(n) * Integer.parseInt(n);
    }
}
